package com.taxi.apiDriver.controller;

import com.taxi.apiDriver.service.UserService;
import com.taxi.common.dto.DriverUser;
import com.taxi.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ruomengjiang
 * @Date 2022/7/31
 * @Description : online-taxi
 * @Version: 1.0
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;


    @PutMapping("/user")
    public ResponseResult updateUser(@RequestBody DriverUser driverUser){
        return userService.updateUser(driverUser);
    }

}
